/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package PaymentTest;

import DTO.Payment;
import java.util.Random;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
 *
 * @author Spence
 */
public class PaymentStub {

    public Payment getCreditCardPayment(double amount){
        Payment pymnt;
        Random rand = new Random( System.currentTimeMillis() );
        int cardNum = Math.abs((rand.nextInt()*12347)%10000);
        String cardType = "Visa";
        pymnt = new Payment(cardNum, cardType, amount);

        return pymnt;
    }
}
